<%@ page import="com.serviceprovider.business.utility.AppUtil" %>
<%@ page isErrorPage="true" %>
<%@include file="/WEB-INF/jsp/include/header.jsp" %>
<html>
<head>
    <link rel="stylesheet" href="<c:url value='/css/styles.css'/>" type="text/css"/>
    <script type="text/javascript">
        function showStackTrace() {
            var div = document.getElementById("trace");
            if(div.style.display == 'none')
                div.style.display = 'block';
            else
                div.style.display = 'none';
        }
    </script>
</head>
<body>
<table>
    <tr>
        <td>
            <h3>Exceptional event occurred!<br/></h3>
            Error details: <span class="errors"> <%= exception.toString() %><br/>
		</span>
            Stack trace:<img src="<c:url value='/images/right_over.gif'/>" onclick="showStackTrace()"
                             alt="Show stacktrace"/>

            <div id="trace" style="color: gray; display: none">
                <%=AppUtil.getStackTrace(exception) %>
            </div>
        </td>
    </tr>
</table>
</body>
</html>